<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>hexo在github创建博客 | RMOE BLOG</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="hexo 创建博客方法 (github)E:\hexo\blog\source_posts( path of *.md)  安装Node.js 安装git for windows 进入“Git Bash”$ git config –global user.name “romepeng”$ git config –global user.email “romepeng@outlook.com” 安装">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo在github创建博客">
<meta property="og:url" content="https://romepeng.github.io/2017/08/05/create-blog-in-github-by-hexo/index.html">
<meta property="og:site_name" content="RMOE BLOG">
<meta property="og:description" content="hexo 创建博客方法 (github)E:\hexo\blog\source_posts( path of *.md)  安装Node.js 安装git for windows 进入“Git Bash”$ git config –global user.name “romepeng”$ git config –global user.email “romepeng@outlook.com” 安装">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2017-08-27T13:25:37.567Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hexo在github创建博客">
<meta name="twitter:description" content="hexo 创建博客方法 (github)E:\hexo\blog\source_posts( path of *.md)  安装Node.js 安装git for windows 进入“Git Bash”$ git config –global user.name “romepeng”$ git config –global user.email “romepeng@outlook.com” 安装">
  
    <link rel="alternate" href="/atom.xml" title="RMOE BLOG" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">RMOE BLOG</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/" id="subtitle">Life Notebook.</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://romepeng.github.io"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-create-blog-in-github-by-hexo" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2017/08/05/create-blog-in-github-by-hexo/" class="article-date">
  <time datetime="2017-08-05T04:18:24.000Z" itemprop="datePublished">2017-08-05</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      hexo在github创建博客
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="hexo-创建博客方法-github"><a href="#hexo-创建博客方法-github" class="headerlink" title="hexo 创建博客方法 (github)"></a>hexo 创建博客方法 (github)</h3><p>E:\hexo\blog\source_posts( path of *.md)</p>
<ol>
<li>安装<a href="https://nodejs.org/en/" target="_blank" rel="external">Node.js</a></li>
<li>安装<a href="https://git-for-windows.github.io/" target="_blank" rel="external">git for windows</a></li>
<li>进入“Git Bash”<br>$ git config –global user.name “romepeng”<br>$ git config –global user.email “romepeng@outlook.com”</li>
<li><p>安装Hexo：<br>$ npm install hexo-cli -g</p>
<ol>
<li>cd E: ;  mkdir hexo; cd hexo;</li>
<li>hexo init blog<br>cd blog</li>
<li>hexo generate</li>
<li>hexo server [<a href="http://localhost:4000" target="_blank" rel="external">http://localhost:4000</a>]</li>
<li><code>ssh-keygen -t rsa -C &quot;Github的注册邮箱地址&quot;</code><br>check: <code>ssh -T git@github.com</code></li>
<li><p>hexo deploy<br>need:  vim _config.yml</p>
<pre><code>deploy:
    type:  git
    repo: git@github.com:romepeng/romepeng.github.io.git
    branch: master

` npm install hexo-deployer-git --save`
</code></pre></li>
</ol>
</li>
<li><p>new post update<br><code>hexo new &quot;My New Post&quot;
  hexo clean
  hexo g
  hexo s
  hexo d
  ( hexo generate --deploy)</code><br>12.use my doimanname <a href="https://www.zhihu.com/question/31377141" target="_blank" rel="external">see zhihu</a><br>  cd \hexo\blog\source  cd.&gt;CNAME  (rr2w.com)</p>
</li>
</ol>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://romepeng.github.io/2017/08/05/create-blog-in-github-by-hexo/" data-id="cj7d9twfh00027omvbqrzuc5s" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2017/08/15/linux commands/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          linux centos command
        
      </div>
    </a>
  
  
    <a href="/2017/08/02/marxcio-help/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">marxcio-help</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">九月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">八月 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2017/09/09/add-hexo-test/">add hexo test</a>
          </li>
        
          <li>
            <a href="/2017/09/09/git doc/">git  --fast-version-control</a>
          </li>
        
          <li>
            <a href="/2017/09/09/edit hexo blog  on different pc/">use hexo on different desktop</a>
          </li>
        
          <li>
            <a href="/2017/09/09/edit git repo in  diffrent desktop/">edit git repo in many desktop</a>
          </li>
        
          <li>
            <a href="/2017/09/09/git proxy/">git proxy</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2017 rome<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>

  </div>
</body>
</html>